package com.cskaoyan.mall.promo.remote;

import com.cskaoyan.mall.dto.ProductDetailServiceResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("duolai-shopping")
public interface ProductApiClient {
    /*
     该方法是商品服务暴露给秒杀服务，使秒杀服务获取秒杀商品详情
 */
    @GetMapping(value = "/rpc/product/detail")
    ProductDetailServiceResponse getProductDetail(@RequestParam("id") Long id);
}
